﻿/*******************************************************************************
* Copyright (C) JuCheap
* 
* Author: JuCheap
* Create Date: 2019/11/24 14:08:33
* Description:  
* 
* Revision History:
* Date         Author               Description
*
*********************************************************************************/

using System.Collections.Generic;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 树状结构模型
    /// </summary>
    public class TreeResponseDto
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 唯一key
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        public List<TreeResponseDto> Children { get; set; }
    }

    /// <summary>
    /// 下拉框树状结构模型
    /// </summary>
    public class SelectTreeResponseDto
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// PId
        /// </summary>
        public string PId { get; set; }
        /// <summary>
        /// Value
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// Label
        /// </summary>
        public string Label { get; set; }
    }
}
